package com.jky.trial.mapper;

import com.jky.trial.entity.Record;
import com.jky.trial.entity.Relation;
import com.jky.trial.entity.TaskSample;
import com.jky.trial.entity.TaskSampleExample;
import com.jky.trial.vo.RecordVo;
import com.jky.trial.vo.TaskSampleVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TaskSampleMapper {
    long countByExample(TaskSampleExample example);

    int deleteByExample(TaskSampleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TaskSample record);

    int insertSelective(TaskSample record);

    List<TaskSample> selectByExample(TaskSampleExample example);

    TaskSample selectByPrimaryKey(Integer id);
    TaskSampleVo selectVoByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TaskSample record, @Param("example") TaskSampleExample example);

    int updateByExample(@Param("record") TaskSample record, @Param("example") TaskSampleExample example);

    int updateByPrimaryKeySelective(TaskSample record);

    int updateByPrimaryKey(TaskSample record);

    List<TaskSampleVo> pageList(TaskSampleVo example);

    /**
     *
     * relation.type 关系类型
     * relation.sourceId 关系源Id
     * @param relation
     * @return
     */
    List<RecordVo> billSample(Relation relation);

}